import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import '@/assets/icons/icons'
// eslint-disable-next-line
// @ts-ignore:next-line
import MathJax from "./initmathjax.js"
import SvgIcon from '@/components/utils/SvgIcon.vue'

import { tr } from "@/assets/translation/trans"
document.oncontextmenu = (e) => {
    e.preventDefault()
}
//解决拖动会选中文字的问题
document.onselectstart = () => {
    return false
};

const app = createApp(App)

app.component('svg-icon', SvgIcon)
app.use(ElementPlus).use(router).use(MathJax).mount('#app')
app.config.globalProperties.$tr = tr
